package com.ourteam.product.model.dao;

/**
 * Template Name : DAO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Aug 18 15:51:23 IRKT 2017
 * Auto Generate Date : 2017-11-17 11:00:51
  * Warning ! This file will be overwrite when regenerate !
  *
 */
import org.apache.commons.lang.StringUtils;


public class ProductModelService implements java.io.Serializable {
    private long id;

    /**
     * Attribute id Be Seted Falg
     */
    private boolean idSetted = false;

    /**
    * Attribute id is Null Falg
    */
    private boolean idNull = false;
    private long objectId;

    /**
     * Attribute objectId Be Seted Falg
     */
    private boolean objectIdSetted = false;

    /**
    * Attribute objectId is Null Falg
    */
    private boolean objectIdNull = false;
    private String serviceCode;

    /**
     * Attribute serviceCode Be Seted Falg
     */
    private boolean serviceCodeSetted = false;

    /**
    * Attribute serviceCode is Null Falg
    */
    private boolean serviceCodeNull = false;
    private String serviceName;

    /**
     * Attribute serviceName Be Seted Falg
     */
    private boolean serviceNameSetted = false;

    /**
    * Attribute serviceName is Null Falg
    */
    private boolean serviceNameNull = false;
    private String status;

    /**
     * Attribute status Be Seted Falg
     */
    private boolean statusSetted = false;

    /**
    * Attribute status is Null Falg
    */
    private boolean statusNull = false;
    private String remarks;

    /**
     * Attribute remarks Be Seted Falg
     */
    private boolean remarksSetted = false;

    /**
    * Attribute remarks is Null Falg
    */
    private boolean remarksNull = false;
    private String canTest;

    /**
     * Attribute canTest Be Seted Falg
     */
    private boolean canTestSetted = false;

    /**
    * Attribute canTest is Null Falg
    */
    private boolean canTestNull = false;
    private long submitterId;

    /**
     * Attribute submitterId Be Seted Falg
     */
    private boolean submitterIdSetted = false;

    /**
    * Attribute submitterId is Null Falg
    */
    private boolean submitterIdNull = false;
    private String creatorName;

    /**
     * Attribute creatorName Be Seted Falg
     */
    private boolean creatorNameSetted = false;

    /**
    * Attribute creatorName is Null Falg
    */
    private boolean creatorNameNull = false;
    private java.util.Date createTime;

    /**
     * Attribute createTime Be Seted Falg
     */
    private boolean createTimeSetted = false;

    /**
    * Attribute createTime is Null Falg
    */
    private boolean createTimeNull = false;
    private String lastModifierName;

    /**
     * Attribute lastModifierName Be Seted Falg
     */
    private boolean lastModifierNameSetted = false;

    /**
    * Attribute lastModifierName is Null Falg
    */
    private boolean lastModifierNameNull = false;
    private java.util.Date lastModifyTime;

    /**
     * Attribute lastModifyTime Be Seted Falg
     */
    private boolean lastModifyTimeSetted = false;

    /**
    * Attribute lastModifyTime is Null Falg
    */
    private boolean lastModifyTimeNull = false;
    private String objectName;

    /**
     * Attribute objectName Be Seted Falg
     */
    private boolean objectNameSetted = false;

    /**
    * Attribute objectName is Null Falg
    */
    private boolean objectNameNull = false;
    private String objectCode;

    /**
     * Attribute objectCode Be Seted Falg
     */
    private boolean objectCodeSetted = false;

    /**
    * Attribute objectCode is Null Falg
    */
    private boolean objectCodeNull = false;
    private String objectType;

    /**
     * Attribute objectType Be Seted Falg
     */
    private boolean objectTypeSetted = false;

    /**
    * Attribute objectType is Null Falg
    */
    private boolean objectTypeNull = false;
    private String objectStatus;

    /**
     * Attribute objectStatus Be Seted Falg
     */
    private boolean objectStatusSetted = false;

    /**
    * Attribute objectStatus is Null Falg
    */
    private boolean objectStatusNull = false;

    public ProductModelService() {
        super();
    }

    /**
         * Get id
         *
         * @return long
         */
    final public long getId() {
        return id;
    }

    /**
     * Set id
     *
     * @param long
     */
    final public void setId(long id) {
        this.id = id;

        this.idSetted = true;

        this.setIdNull(false);
    }

    /**
     * Get id Has Been Setted
     *
     * @return boolean
     */
    final public boolean isIdSetted() {
        return this.idSetted;
    }

    /**
     * Set id Null
     *
     */
    final public void setIdNull() {
        this.idNull = true;
    }

    final public void setIdNull(boolean aNullFlag) {
        this.idNull = aNullFlag;
    }

    final public boolean isIdNull() {
        return this.idNull;
    }

    /**
         * Get objectId
         *
         * @return long
         */
    final public long getObjectId() {
        return objectId;
    }

    /**
     * Set objectId
     *
     * @param long
     */
    final public void setObjectId(long objectId) {
        this.objectId = objectId;

        this.objectIdSetted = true;

        this.setObjectIdNull(false);
    }

    /**
     * Get objectId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isObjectIdSetted() {
        return this.objectIdSetted;
    }

    /**
     * Set objectId Null
     *
     */
    final public void setObjectIdNull() {
        this.objectIdNull = true;
    }

    final public void setObjectIdNull(boolean aNullFlag) {
        this.objectIdNull = aNullFlag;
    }

    final public boolean isObjectIdNull() {
        return this.objectIdNull;
    }

    /**
         * Get serviceCode
         *
         * @return String
         */
    final public String getServiceCode() {
        if (isServiceCodeNull()) {
            return null;
        } else {
            return StringUtils.trim(serviceCode);
        }
    }

    /**
     * Set serviceCode
     *
     * @param String
     */
    final public void setServiceCode(String serviceCode) {
        this.serviceCode = StringUtils.trim(serviceCode);

        this.serviceCodeSetted = true;

        this.setServiceCodeNull(this.serviceCode == null);
    }

    /**
     * Get serviceCode Has Been Setted
     *
     * @return boolean
     */
    final public boolean isServiceCodeSetted() {
        return this.serviceCodeSetted;
    }

    /**
     * Set serviceCode Null
     *
     */
    final public void setServiceCodeNull() {
        this.serviceCodeNull = true;
    }

    final public void setServiceCodeNull(boolean aNullFlag) {
        this.serviceCodeNull = aNullFlag;
    }

    final public boolean isServiceCodeNull() {
        return this.serviceCodeNull;
    }

    /**
         * Get serviceName
         *
         * @return String
         */
    final public String getServiceName() {
        if (isServiceNameNull()) {
            return null;
        } else {
            return StringUtils.trim(serviceName);
        }
    }

    /**
     * Set serviceName
     *
     * @param String
     */
    final public void setServiceName(String serviceName) {
        this.serviceName = StringUtils.trim(serviceName);

        this.serviceNameSetted = true;

        this.setServiceNameNull(this.serviceName == null);
    }

    /**
     * Get serviceName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isServiceNameSetted() {
        return this.serviceNameSetted;
    }

    /**
     * Set serviceName Null
     *
     */
    final public void setServiceNameNull() {
        this.serviceNameNull = true;
    }

    final public void setServiceNameNull(boolean aNullFlag) {
        this.serviceNameNull = aNullFlag;
    }

    final public boolean isServiceNameNull() {
        return this.serviceNameNull;
    }

    /**
         * Get status
         *
         * @return String
         */
    final public String getStatus() {
        if (isStatusNull()) {
            return null;
        } else {
            return StringUtils.trim(status);
        }
    }

    /**
     * Set status
     *
     * @param String
     */
    final public void setStatus(String status) {
        this.status = StringUtils.trim(status);

        this.statusSetted = true;

        this.setStatusNull(this.status == null);
    }

    /**
     * Get status Has Been Setted
     *
     * @return boolean
     */
    final public boolean isStatusSetted() {
        return this.statusSetted;
    }

    /**
     * Set status Null
     *
     */
    final public void setStatusNull() {
        this.statusNull = true;
    }

    final public void setStatusNull(boolean aNullFlag) {
        this.statusNull = aNullFlag;
    }

    final public boolean isStatusNull() {
        return this.statusNull;
    }

    /**
         * Get remarks
         *
         * @return String
         */
    final public String getRemarks() {
        if (isRemarksNull()) {
            return null;
        } else {
            return StringUtils.trim(remarks);
        }
    }

    /**
     * Set remarks
     *
     * @param String
     */
    final public void setRemarks(String remarks) {
        this.remarks = StringUtils.trim(remarks);

        this.remarksSetted = true;

        this.setRemarksNull(this.remarks == null);
    }

    /**
     * Get remarks Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRemarksSetted() {
        return this.remarksSetted;
    }

    /**
     * Set remarks Null
     *
     */
    final public void setRemarksNull() {
        this.remarksNull = true;
    }

    final public void setRemarksNull(boolean aNullFlag) {
        this.remarksNull = aNullFlag;
    }

    final public boolean isRemarksNull() {
        return this.remarksNull;
    }

    /**
         * Get canTest
         *
         * @return String
         */
    final public String getCanTest() {
        if (isCanTestNull()) {
            return null;
        } else {
            return StringUtils.trim(canTest);
        }
    }

    /**
     * Set canTest
     *
     * @param String
     */
    final public void setCanTest(String canTest) {
        this.canTest = StringUtils.trim(canTest);

        this.canTestSetted = true;

        this.setCanTestNull(this.canTest == null);
    }

    /**
     * Get canTest Has Been Setted
     *
     * @return boolean
     */
    final public boolean isCanTestSetted() {
        return this.canTestSetted;
    }

    /**
     * Set canTest Null
     *
     */
    final public void setCanTestNull() {
        this.canTestNull = true;
    }

    final public void setCanTestNull(boolean aNullFlag) {
        this.canTestNull = aNullFlag;
    }

    final public boolean isCanTestNull() {
        return this.canTestNull;
    }

    /**
         * Get submitterId
         *
         * @return long
         */
    final public long getSubmitterId() {
        return submitterId;
    }

    /**
     * Set submitterId
     *
     * @param long
     */
    final public void setSubmitterId(long submitterId) {
        this.submitterId = submitterId;

        this.submitterIdSetted = true;

        this.setSubmitterIdNull(false);
    }

    /**
     * Get submitterId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isSubmitterIdSetted() {
        return this.submitterIdSetted;
    }

    /**
     * Set submitterId Null
     *
     */
    final public void setSubmitterIdNull() {
        this.submitterIdNull = true;
    }

    final public void setSubmitterIdNull(boolean aNullFlag) {
        this.submitterIdNull = aNullFlag;
    }

    final public boolean isSubmitterIdNull() {
        return this.submitterIdNull;
    }

    /**
         * Get creatorName
         *
         * @return String
         */
    final public String getCreatorName() {
        if (isCreatorNameNull()) {
            return null;
        } else {
            return StringUtils.trim(creatorName);
        }
    }

    /**
     * Set creatorName
     *
     * @param String
     */
    final public void setCreatorName(String creatorName) {
        this.creatorName = StringUtils.trim(creatorName);

        this.creatorNameSetted = true;

        this.setCreatorNameNull(this.creatorName == null);
    }

    /**
     * Get creatorName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isCreatorNameSetted() {
        return this.creatorNameSetted;
    }

    /**
     * Set creatorName Null
     *
     */
    final public void setCreatorNameNull() {
        this.creatorNameNull = true;
    }

    final public void setCreatorNameNull(boolean aNullFlag) {
        this.creatorNameNull = aNullFlag;
    }

    final public boolean isCreatorNameNull() {
        return this.creatorNameNull;
    }

    /**
         * Get createTime
         *
         * @return java.util.Date
         */
    final public java.util.Date getCreateTime() {
        return createTime;
    }

    /**
     * Set createTime
     *
     * @param java.util.Date
     */
    final public void setCreateTime(java.util.Date createTime) {
        this.createTime = createTime;

        this.createTimeSetted = true;

        this.setCreateTimeNull(this.createTime == null);
    }

    /**
     * Get createTime Has Been Setted
     *
     * @return boolean
     */
    final public boolean isCreateTimeSetted() {
        return this.createTimeSetted;
    }

    /**
     * Set createTime Null
     *
     */
    final public void setCreateTimeNull() {
        this.createTimeNull = true;
    }

    final public void setCreateTimeNull(boolean aNullFlag) {
        this.createTimeNull = aNullFlag;
    }

    final public boolean isCreateTimeNull() {
        return this.createTimeNull;
    }

    /**
         * Get lastModifierName
         *
         * @return String
         */
    final public String getLastModifierName() {
        if (isLastModifierNameNull()) {
            return null;
        } else {
            return StringUtils.trim(lastModifierName);
        }
    }

    /**
     * Set lastModifierName
     *
     * @param String
     */
    final public void setLastModifierName(String lastModifierName) {
        this.lastModifierName = StringUtils.trim(lastModifierName);

        this.lastModifierNameSetted = true;

        this.setLastModifierNameNull(this.lastModifierName == null);
    }

    /**
     * Get lastModifierName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isLastModifierNameSetted() {
        return this.lastModifierNameSetted;
    }

    /**
     * Set lastModifierName Null
     *
     */
    final public void setLastModifierNameNull() {
        this.lastModifierNameNull = true;
    }

    final public void setLastModifierNameNull(boolean aNullFlag) {
        this.lastModifierNameNull = aNullFlag;
    }

    final public boolean isLastModifierNameNull() {
        return this.lastModifierNameNull;
    }

    /**
         * Get lastModifyTime
         *
         * @return java.util.Date
         */
    final public java.util.Date getLastModifyTime() {
        return lastModifyTime;
    }

    /**
     * Set lastModifyTime
     *
     * @param java.util.Date
     */
    final public void setLastModifyTime(java.util.Date lastModifyTime) {
        this.lastModifyTime = lastModifyTime;

        this.lastModifyTimeSetted = true;

        this.setLastModifyTimeNull(this.lastModifyTime == null);
    }

    /**
     * Get lastModifyTime Has Been Setted
     *
     * @return boolean
     */
    final public boolean isLastModifyTimeSetted() {
        return this.lastModifyTimeSetted;
    }

    /**
     * Set lastModifyTime Null
     *
     */
    final public void setLastModifyTimeNull() {
        this.lastModifyTimeNull = true;
    }

    final public void setLastModifyTimeNull(boolean aNullFlag) {
        this.lastModifyTimeNull = aNullFlag;
    }

    final public boolean isLastModifyTimeNull() {
        return this.lastModifyTimeNull;
    }

    /**
         * Get objectName
         *
         * @return String
         */
    final public String getObjectName() {
        if (isObjectNameNull()) {
            return null;
        } else {
            return StringUtils.trim(objectName);
        }
    }

    /**
     * Set objectName
     *
     * @param String
     */
    final public void setObjectName(String objectName) {
        this.objectName = StringUtils.trim(objectName);

        this.objectNameSetted = true;

        this.setObjectNameNull(this.objectName == null);
    }

    /**
     * Get objectName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isObjectNameSetted() {
        return this.objectNameSetted;
    }

    /**
     * Set objectName Null
     *
     */
    final public void setObjectNameNull() {
        this.objectNameNull = true;
    }

    final public void setObjectNameNull(boolean aNullFlag) {
        this.objectNameNull = aNullFlag;
    }

    final public boolean isObjectNameNull() {
        return this.objectNameNull;
    }

    /**
         * Get objectCode
         *
         * @return String
         */
    final public String getObjectCode() {
        if (isObjectCodeNull()) {
            return null;
        } else {
            return StringUtils.trim(objectCode);
        }
    }

    /**
     * Set objectCode
     *
     * @param String
     */
    final public void setObjectCode(String objectCode) {
        this.objectCode = StringUtils.trim(objectCode);

        this.objectCodeSetted = true;

        this.setObjectCodeNull(this.objectCode == null);
    }

    /**
     * Get objectCode Has Been Setted
     *
     * @return boolean
     */
    final public boolean isObjectCodeSetted() {
        return this.objectCodeSetted;
    }

    /**
     * Set objectCode Null
     *
     */
    final public void setObjectCodeNull() {
        this.objectCodeNull = true;
    }

    final public void setObjectCodeNull(boolean aNullFlag) {
        this.objectCodeNull = aNullFlag;
    }

    final public boolean isObjectCodeNull() {
        return this.objectCodeNull;
    }

    /**
         * Get objectType
         *
         * @return String
         */
    final public String getObjectType() {
        if (isObjectTypeNull()) {
            return null;
        } else {
            return StringUtils.trim(objectType);
        }
    }

    /**
     * Set objectType
     *
     * @param String
     */
    final public void setObjectType(String objectType) {
        this.objectType = StringUtils.trim(objectType);

        this.objectTypeSetted = true;

        this.setObjectTypeNull(this.objectType == null);
    }

    /**
     * Get objectType Has Been Setted
     *
     * @return boolean
     */
    final public boolean isObjectTypeSetted() {
        return this.objectTypeSetted;
    }

    /**
     * Set objectType Null
     *
     */
    final public void setObjectTypeNull() {
        this.objectTypeNull = true;
    }

    final public void setObjectTypeNull(boolean aNullFlag) {
        this.objectTypeNull = aNullFlag;
    }

    final public boolean isObjectTypeNull() {
        return this.objectTypeNull;
    }

    /**
         * Get objectStatus
         *
         * @return String
         */
    final public String getObjectStatus() {
        if (isObjectStatusNull()) {
            return null;
        } else {
            return StringUtils.trim(objectStatus);
        }
    }

    /**
     * Set objectStatus
     *
     * @param String
     */
    final public void setObjectStatus(String objectStatus) {
        this.objectStatus = StringUtils.trim(objectStatus);

        this.objectStatusSetted = true;

        this.setObjectStatusNull(this.objectStatus == null);
    }

    /**
     * Get objectStatus Has Been Setted
     *
     * @return boolean
     */
    final public boolean isObjectStatusSetted() {
        return this.objectStatusSetted;
    }

    /**
     * Set objectStatus Null
     *
     */
    final public void setObjectStatusNull() {
        this.objectStatusNull = true;
    }

    final public void setObjectStatusNull(boolean aNullFlag) {
        this.objectStatusNull = aNullFlag;
    }

    final public boolean isObjectStatusNull() {
        return this.objectStatusNull;
    }

    public int hashCode() {
        final int prime = 31;
        int result = 1;

        result = (prime * result) + (int) (getId() ^ (getId() >>> 32));

        return result;
    }

    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }

        if ((obj instanceof ProductModelService) == false) {
            return false;
        }

        ProductModelService other = (ProductModelService) obj;

        if (getId() != other.getId()) {
            return false;
        }

        return true;
    }

    public String toString() {
        StringBuffer buffer = new StringBuffer();

        buffer.append("[");

        buffer.append("id=");
        buffer.append(this.id);

        buffer.append("objectId=");
        buffer.append(this.objectId);

        buffer.append("serviceCode=");
        buffer.append(this.serviceCode);

        buffer.append("serviceName=");
        buffer.append(this.serviceName);

        buffer.append("status=");
        buffer.append(this.status);

        buffer.append("remarks=");
        buffer.append(this.remarks);

        buffer.append("canTest=");
        buffer.append(this.canTest);

        buffer.append("objectName=");
        buffer.append(this.objectName);

        buffer.append("objectCode=");
        buffer.append(this.objectCode);

        buffer.append("objectType=");
        buffer.append(this.objectType);

        buffer.append("objectStatus=");
        buffer.append(this.objectStatus);

        buffer.append("submitterId=");
        buffer.append(this.submitterId);

        buffer.append("creatorName=");
        buffer.append(this.creatorName);

        buffer.append("createTime=");
        buffer.append(this.createTime);

        buffer.append("lastModifierName=");
        buffer.append(this.lastModifierName);

        buffer.append("lastModifyTime=");
        buffer.append(this.lastModifyTime);

        buffer.append("]");

        return buffer.toString();
    }
}
